import request from '@/router/axios';

export const getList = (page, size, params) => {
  return request({
    url: '/order/orderForm/list',
    method: 'post',
    params: {
      ...params,
      page,
      size,
    }
  })
}
export const getDetail = (orderFormId) => {
  return request({
    url: '/order/orderForm/detail',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      orderFormId
    }
  })
}
export const getOrderFormGoods = (data) => {
  return request({
    url: '/order/orderForm/orderFormGoodsList',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: data
  })
}
export const getStoreWillCallId = (id) => {
  return request({
    url: '/base/storeWillCall/getStoreWillCallId',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
		id
	}
  })
}

export const closeAnaccount = (page, size, params) => {
  return request({
    url: '/order/settlementMain/list',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      adStatus:0,
      ...params,
      page,
      size,
    }
  })
};

export const details = (page, size, params) => {
  return request({
    url: '/order/settlementDetail/list',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      adStatus:0,
      ...params,
      page,
      size,
    }
  })
};
export const detailsFormGoods = (data) => {
  return request({
    url: '/order/settlementGoodsDetail/list',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: data
  })
}
export const confirmation = (data) => {
  return request({
    url: '/order/settlementMain/startConfirm',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: data
  })
}

export const sellercloseAnaccount = (page, size, params) => {
  return request({
    url: '/order/sellerSettlementMain/list',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      adStatus:0,
      ...params,
      page,
      size,
    }
  })
};

export const sellerdetails = (page, size, params) => {
  return request({
    url: '/order/sellerSettlementDetail/list',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      adStatus:0,
      ...params,
      page,
      size,
    }
  })
};
export const sellerdetailsFormGoods = (data) => {
  return request({
    url: '/order/sellerSettlementGoodsDetail/list',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: data
  })
}
export const sellerconfirmation = (data) => {
  return request({
    url: '/order/sellerSettlementDetail/detailConfirm',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: data
  })
}
export const getCallbackIdByPayFormId = (data) => {
  return request({
    url: '/pay/pay/getCallbackIdByPayFormId',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: data
  })
}